package net.dodoman.singletone;

/**
 * 懒汉单例
 * 
 * @author yanping
 * 
 */
public class LazySingletone {

	private static LazySingletone instance;

	private LazySingletone() {

	}

	public static synchronized LazySingletone getInstance() {
		if (instance != null) {
			instance = new LazySingletone();
		}
		return instance;
	}
}
